// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "GunCustomLogicBase.h"
#include "BulletArrow.h"
#include "BowCustomLogic.generated.h"

/**
 * 
 */
UCLASS()
class ISALONG2_API UBowCustomLogic : public UGunCustomLogicBase
{
	GENERATED_BODY()

private:
	float _force = 1.0f;

	ABulletArrow* _holdArrow=nullptr;

	// fack timer
	float gameTime = 0;
	bool happened = false;

	bool _reloadComplete = true;
	
public:
	UBowCustomLogic();

	void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
	
	void OnFireBegin() override;

	void OnFireEnd() override;

	void OnReloadEnd(int count) override;

	void OnFireAnimationEnd() override;

	void OnFireAnimationFired() override;

	void LogicTick(float DeltaTime) override;

	void OnReloadBegin_Addition() override;

	void PutDown_Addition(IWeaponOwner* character) override;
};
